<template>
  <div class="normal">
    <h3>全球榜</h3>
    <ul class="content">
      <li
        v-for="item in data"
        :key="item.id"
        class="item"
        @click="$router.push('/rank/' + item.id)"
      >
        <div class="left">
          <img :src="item.coverImgUrl" v-lazy="item.coverImgUrl" alt="" />
          <span>{{ item.update }}</span>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  props: {
    data: Array,
  },
};
</script>
<style lang="scss" scoped>
@import "../../assets/global-style.scss";
.normal {
  padding: 5px;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 5px 0;
}
.content {
  display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  .item {
  
    border-bottom: 1px solid $border-color;
    width: 32%;
    padding: 3px 0;
    .left {
      position: relative;
      img {
        width: 100%;
        border-radius: 3px;
      }
      span {
        height: 30%;
        width: 100%;
        background-image: linear-gradient(
          rgba(255, 255, 255, 0),
          rgba(110, 110, 110, 0.4)
        );
        position: absolute;
        bottom: 2px;
        left: 0;
        border-radius: 4px;
        padding: 22px 0 0 7px;
        box-sizing: border-box;
        color: #fff;
      }
    }
  }
}
</style>
